package com.xwn.utils;

/**
 * @Author duandw
 * @Date 2019/12/31 17:29
 **/
public class Contant {
    public static final Integer RESP_CODE_SUCC = 1;
    public static final Integer RESP_CODE_FAIL = 0;
    public static final Integer RESP_CODE_PIN_CODE_NOT_VALID = -1;
    public static final Integer RESP_CODE_USER_LOCKED = -2;
    public static final Integer RESP_CODE_NEED_MOBILEPHONE_VERIFICATION_CODE = -3;
    public static final Integer RESP_CODE_MOBILEPHONE_VERIFICATION_CODE_NOT_VALID = -4;
    public static final String SWITCH_ON = "ON";
    public static final String SWITCH_OFF = "OFF";

    public Contant() {
    }

    public static class ProtocolType {
        public static final String REST = "rest";
        public static final String RPC = "rpc";

        public ProtocolType() {
        }
    }

    public static class RedisPoolType {
        public static final String SHARDED = "SHARDED";
        public static final String CLUSTER = "CLUSTER";

        public RedisPoolType() {
        }
    }
}
